Skip to content

Conversation

@davidjgoss
Copy link
Contributor

@davidjgoss davidjgoss commented Sep 8, 2025

🤔 What's changed?

In order to implement suggestions for an undefined step, consumers will need access to the full PickleStep, including the keyword type, text, and doc string or data table argument. This PR exposes it publicly in the UndefinedError.

It also adds a new method getExpressionGenerator() to the SupportCodeLibrary which can then be used to generate possible expressions for a pickle step text.

🏷️ What kind of change is this?

  • ⚡ New feature (non-breaking change which adds new behaviour)

📋 Checklist:

  • I agree to respect and uphold the Cucumber Community Code of Conduct
  • I've changed the behaviour of the code
    • I have added/updated tests to cover my changes.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • Users should know about my change
    • I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

This text was originally generated from a template, then edited by hand. You can modify the template here.

@davidjgoss davidjgoss changed the title Make PickleStep available on UndefinedError Affordances for suggestions/snippets Sep 8, 2025
@davidjgoss davidjgoss marked this pull request as ready for review September 8, 2025 16:20
@davidjgoss davidjgoss merged commit 6118aba into main Sep 8, 2025
11 checks passed
@davidjgoss davidjgoss deleted the undefined-picklestep branch September 8, 2025 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants